PEZoomPreviewWindow

Use PEZoomPreviewWindow to change the magnification of the preview window to a specified level. Use this function when the report has been printed to a preview window and you want to set the magnification of the preview window to a specific level (Full Page, Fit One Side, Fit Both Sides, or a specified level).

C Syntax
BOOL CRPE_API PEZoomPreviewWindow (
        short printJob,
        short level );
Parameters

printJob

Specifies the print job for which you want to set the magnification level in the preview window.

level

The zoom level at which you want to set the preview window. This value can be a set to a specific magnification level (%) in the range from 25 to 400, or you can use one of the Zoom Level Constants.

Returns
VB Syntax

VB Sample Code for Previewing a Report

Declare Function PEZoomPreviewWindow Lib "crpe32.dll" (
    ByVal printJob As Integer, ByVal ZoomLevel As Integer ) As Integer
Delphi Syntax
function PEZoomPreviewWindow (
    printJob: Word;
    level: smallint
    ): Bool stdcall;
dBASE for Windows Syntax

EXTERN CLOGICAL PEZoomPreviewWindow (CWORD, CWORD)CRPE.DLL



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com